package cn.wangliang181230.boot.web.restcontroller;

import cn.wangliang181230.boot.web.springbean.IMyBean;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class MyRestController {

	@Resource
	private IMyBean myBean;


	@GetMapping("/test2")
	public String test2() {
		System.out.println("test2: " + System.currentTimeMillis());
		return "test2";
	}

	@GetMapping("/testBean")
	public String testBean() {
		return myBean.execute();
	}

}
